export function ws(userId, TaskId) {
    return createWs({
        URL: process.env.VUE_APP_BASE_API,
        USERID: userId,
        TASKID: TaskId
    })
}

function createWs(data) {
    return new WebSocket(`${data.URL}/websocket/${data.USERID}/${data.TASKID}`)
}

export default ws